﻿package scripts
{
	//import com.platinadesign.axa.view.Page;
	import flash.events.Event;

	public class PageTurningEvent extends Event
	{
		/**
		 * 翻页数据处理中
		 */
		public static const PAGE_TURNING : String = "PageTurningEvent::PAGE_TURNING";

		/**
		 * 请求翻页
		 */
		public static const TURN_PAGE : String = "PageTurningEvent::TURN_PAGE";

		public static const TURN_TO_RIGHT : String = "PageTurningEvent::TURN_RIGHT";

		public static const TURN_TO_LEFT : String = "PageTurningEvent::TURN_LEFT";

		public function get targetIndex() : int
		{
			return _targetIndex;
		}

		public function set targetIndex( value : int ) : void
		{
			_targetIndex = value;
		}

		

		public function get direction() : String
		{
			return _direction;
		}

		public function set direction( value : String ) : void
		{
			_direction = value;
		}

		private var _direction : String;

		private var _overPages : Vector;

		private var _targetIndex : int;

		public function PageTurningEvent( type : String, direction : String = null, targetIndex : int = -1)
		{
			super( type, true );
			_direction = direction;
			_targetIndex = targetIndex;

			
		}
	}
}